<?php
/**
 * www.zhuizhan.com.
 * User: junyv
 * Date: 14-11-22 下午3:25
 */
namespace Admin\Controller;
class IntegralRecordController extends CommonController {
    protected $integral='';
    public function _initialize() {

        parent::_initialize();

    }
    public function index(){
        $map = $this->_search();
        //dump($map);die;
        $mod = D($this->_name);
        !empty($mod) && $this->_list($mod, $map);
        $this->list_table = true;
        $this->display();
    }
    protected function _search() {
        $map = array();
        ($keyword = I('request.keyword')) && $map['info'] = array('like', '%'.$keyword.'%');
        $this->assign('search', array(
            'keyword' => $keyword,
        ));
        return $map;
    }

    public function _before_index() {
        $this->list_relation = true;
    }
}